/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.viewer.dao;

import cn.mcsys.myadmin.common.persistence.annotation.MyBatisDao;
import cn.mcsys.myadmin.modules.viewer.entity.AirRideQrCode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 二维码DAO接口
 * @author leopold
 * @version 2018-09-11
 */
@MyBatisDao
public interface AirRideQrCodeDao{

    void insert(AirRideQrCode airRideQrCode);

    void update(AirRideQrCode airRideQrCode);

    AirRideQrCode get(Long id);

    List<AirRideQrCode> selectByUserId(Long id);

    List<AirRideQrCode> selectByDate(String date);

    Integer selectBookingSumByPointId(Integer pointId);

    List<AirRideQrCode> selectAll(int pageNo);

    List<AirRideQrCode> selectAllQRCode();

    void UpdateExpiredQrCodes(List<Long> expiredETickets);

    Integer selectCountByPointId(@Param("pointId") Integer id, @Param("bookDate") String bookDate);

    List<String> selectByPage(int pageNo);

    void updateDelFlag(Long qrcodeId);

    Integer getAllCountToday();

    List<AirRideQrCode> getByStatusToday(@Param("status")Integer status);
}
